<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCollageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('collage', function (Blueprint $table) {
            $table->increments('id');
            $table->string('cover')->default('')->comment('团购封面');
            $table->string('title')->default('')->comment('团购标题');
            $table->string('houses_name')->default('')->comment('楼盘名称');
            $table->string('houses_address')->default('')->comment('楼盘地址');
            $table->dateTime('start_time')->comment('开播时间');
            $table->dateTime('end_time')->comment('结束时间');
            $table->text('desc')->comment('团购介绍');
            $table->integer('intermediary_id')->comment('经纪人id');
            $table->tinyInteger('status')->comment('团购状态 0:未开团 1:已开团');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('collage');
    }
}
